//
//  CNavigationBar.swift
//  WKWeb
//
//  Created by 郑东喜 on 2016/12/7.
//  Copyright © 2016年 郑东喜. All rights reserved.
//

import UIKit

protocol CusNavigationBarDelegate {
     func navigationBar(_ navigationBar: UINavigationBar, shouldPop item: UINavigationItem) -> Bool
}

class CNavigationBar: NSObject,UINavigationBarDelegate {
    var delegate : CusNavigationBarDelegate?

    func navigationBar(_ navigationBar: UINavigationBar, shouldPop item: UINavigationItem) -> Bool {
        return (self.delegate?.navigationBar(navigationBar, shouldPop: item))!
//        return true
    }
}

